import { useState, useEffect } from "react";
import "./index.less";
import ChatList from "./components/ChatList/index";
import ChatContent from "./components/ChatContent/index";

function Chat() {
  const [content, setContent] = useState({});
  
  return (
    <>
      <div className="flex-base">
        <ChatList setContent={setContent}/>
        <ChatContent content={content}/>
      </div>
    </>
  );
}

export default Chat;
